/*
 * $Id: assert.c,v 1.10 2005-04-24 07:48:16 bacon Exp $
 */

#include <xp/bas/assert.h>
#include <xp/bas/stdio.h>
#include <xp/bas/stdlib.h>

void __xp_assert (const xp_char_t* expr, const xp_char_t* file, int line)
{
	xp_printf (XP_TEXT("ASSERTION FAILURE AT FILE %s, LINE %d\n"), file, line);
	xp_printf (XP_TEXT("EXPRESSION [%s]\n"), expr);
	xp_abort ();
}
